<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		function fuzhi(disid) {
			var r = confirm("你确定要复职该员工吗？");
			if(r==true){
				alert(disid);
				$.ajax({
					url: "fuzhi",
					data:{
						disid:disid
					},
					success: function(data){
						alert("已复职，可以在员工查询中进行查看！");
					}
				});
			}
		}
	</script>
	<link rel="stylesheet" href="../static/zyc/css/emp-separ.css?<%=Math.random()%>">
	<div class="full_scr bj_home">
		<div class="bj_img" style="background-image:${hopa.perPmsZts[0].ztback}"></div>
		<div class="bj_txt">
			<div class="bj_small bj_s_w7">
				
				<div class="separ_head">
					<span class="text_style_title">离职记录</span>
				</div>
				<div class="separ_box">
					<ul>
						<c:forEach items="${dis}" var="s">
							<li class="len">
								<div class="separ_liz">
									<img class="len" src="${s.perPmsEmp.perPmsZts[0].zthost}">
									<div class="len">
										<h1>${s.perPmsEmp.empname}<span>${s.distime}</span></h1><br/>
										<p title="${s.disyy}">离职原因：${s.disyy}</p>
									</div>
									<div class="rin">
										<button class="green" onclick="adds('基础资料','zyc/emp-det','id=${s.perPmsEmp.empid}')">查看</button>
										<button class="red" onclick="fuzhi(${s.disid})">复职</button>
									</div>
								</div>
							</li>
						</c:forEach>
					</ul>
				</div>
			
			</div>
		</div>
	</div>
</body>
</html>